package svc

import (
	"server/internal/config"

	"github.com/docker/docker/client"
)

type ServiceContext struct {
	Config    config.Config
	DockerCli *client.Client
}

func NewServiceContext(c config.Config) *ServiceContext {
	dockerCli := config.NewDockerClient(&c.Docker)

	return &ServiceContext{
		Config:    c,
		DockerCli: dockerCli,
	}
}
